function HandleBReception(gui, user, date, options, data) {
  this._gui = gui;
  this._user = user;
  this._date = date;
  this._options = options;
  this._data = data;
  
  this._popupBox = new ModulePopupBox();
  this._createElements();
};

HandleBReception.prototype._createElements = function() {
  var tr, td, _self = this;

  if (this._data[0] && this._data[0].data.length != 0) {
    this._c = this._data[0].data[0];
  } else {
    this._c = pz_reception.instance();
  }
  
  this._gui.name.value = this._c.name;
  this._gui.name.onchange = function() { _self._c.name = this.value; };
  
  this._gui.save.onclick = function() { if (_self._c.name == '') {
                                          window.alert('Name Can Not Be Empty');
                                        } else {
                                          var pos = DOMUtils.findPos(this);
                                          new RequestUtils()._write('pz_reception', [_self._c], [], function() {history.back(); }, {pos: pos});
                                        }
                                      };
  this._gui.cancel.onclick = function() { history.back(); };
};
